import request from '@/utils/request.js'

/**
 * 获取排班信息
 */
export function getScheduleDate(params) {
	return request.get({
		url: '/shiftduty/v3/api/schedule/getScheduleDate',
		params,
		loading: false
	});
}

// 获取当前值别
export function getTeamNow(){
	return request.get({
		url: "/shiftduty/v3/api/schedule/getTeam",
	})
}

// 获取调度命令
export function getLogCommand(){
	return request.get({
		url: "/shiftduty/v3/api/logCommand/getList",
	})
}

// 获取值班日志类型
export function getLogType(companyId){
	return request.get({
		url: "/shiftduty/v3/api/log/gettype",
		params: {companyId}
	})
}

// 获取值班日志
export function getLogNotes(params, pager){
	return request.post({
		url: "/shiftduty/v3/api/log/getLogNotes",
		pager,
		params,
		paramType: "post"
	})
}

// 启停机列表查询
export function getRucdList(params, pager){
	return request.post({
		url: "/shiftduty/v3/api/rucd/getList",
		pager,
		params,
		paramType: "post"
	})
}

// 启停机详情查询
export function getRucdInfo(params){
	return request.get({
		url: "/shiftduty/v3/api/rucd/queryById",
		params
	})
}

// 启停机新增
export function addRucd(params){
	return request.post({
		url: "/shiftduty/v3/api/rucd/add",
		params,
		paramType: "post"
	})
}

// 启停机编辑
export function editRucd(params){
	return request.post({
		url: "/shiftduty/v3/api/rucd/edit",
		params,
		paramType: "post"
	})
}

// 启停机修改状态
export function updateStatusRucd(params){
	return request.get({
		url: "/shiftduty/v3/api/rucd/updateStatus",
		params
	})
}

// 启停机删除
export function delRucd(params){
	return request.get({
		url: "/shiftduty/v3/api/rucd/delete",
		params
	})
}

// 停送电列表查询
export function getStopSendList(params, pager){
	return request.post({
		url: "/shiftduty/v3/api/stopsend/getList",
		pager,
		params,
		paramType: "post"
	})
}

// 停送电详情查询
export function getStopSendInfo(params){
	return request.get({
		url: "/shiftduty/v3/api/stopsend/queryById",
		params
	})
}

// 停送电新增
export function addStopSend(params){
	return request.post({
		url: "/shiftduty/v3/api/stopsend/add",
		params,
		paramType: "post"
	})
}

// 停送电编辑
export function editStopSend(params){
	return request.post({
		url: "/shiftduty/v3/api/stopsend/edit",
		params,
		paramType: "post"
	})
}

// 停送电修改状态
export function updateStatusStopSend(params){
	return request.get({
		url: "/shiftduty/v3/api/stopsend/updateStatus",
		params
	})
}

// 停送电删除
export function delStopSend(params){
	return request.get({
		url: "/shiftduty/v3/api/stopsend/delete",
		params
	})
}

// 任务转办人员添加
export function addTaskTransfer(params) {
	return request.post({
		url: "/shiftduty/v3/api/transfer/addTaskTransfer",
		params,
		paramType: "post"
	})
}